package com.huzz.component;

import cn.dev33.satoken.stp.StpInterface;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Name 角色-权限
 * @Description 描述
 * @Author 童年的纸飞机
 * @Since 2023-08-2023/8/2 08:49
 */
@Component
public class StpInterfaceImpl implements StpInterface {

    public List<String> getPermissionList(Object loginId, String loginType) {
        return null;
    }

    public List<String> getRoleList(Object loginId, String loginType) {
        List<String> ruleList = new ArrayList<>();
        ruleList.add("admin");
        return ruleList;
    }
}
